/**
 * Copyright (C), 2018-2020
 * FileName: Demo
 * Author:   kongfanyu
 * Date:     2020/9/6 23:04
 */
public class Demo {
    public static void main(String[] args) {
        String s1 = new StringBuilder("go").append("od").toString();
        System.out.println(s1.intern() == s1);
        String s2 = new StringBuilder("go").append("od").toString();
        System.out.println(s2.intern() == s2);
        String s3 = new StringBuilder("go").append("od").toString();
        System.out.println(s3.intern() == s3);
    }
}
